package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IClassFragmentContract;
import com.clouddot.baipai.contract.IMainFragmentContract;
import com.clouddot.baipai.model.ClassFragmentModel;
import com.clouddot.baipai.model.MainFragmentModel;
import com.clouddot.baipai.presenter.ClassFragmentPresenter;
import com.clouddot.baipai.presenter.MainFragmentPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class ClassFragmentModule {

    private IClassFragmentContract.IView mView;

    public ClassFragmentModule(IClassFragmentContract.IView view) {
        mView = view;
    }

    @Provides
    public IClassFragmentContract.IPresenter providerPresenter() {
        return new ClassFragmentPresenter(mView, new ClassFragmentModel(mView.getContext()));
    }
}
